package com.ljf.spring.weixin;

import com.ljf.weixin.WeiXinConfig;
import com.ljf.weixin.WeiXinManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;

/**
 * 说明：微信配置注入
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/24
 */
@ConditionalOnClass(WeiXinManager.class)
public class WeiXinBeanInject {

    /**
     * 注入配置Bean
     */
    @Autowired(required = false)
    public void setWeiXinConfig(WeiXinConfig config) {
        WeiXinManager.setConfig(config);
    }


}
